//
//  CLGLocationManager.h
//  CLGLocationApp
//
//  Created by Liu Guocheng on 2018/4/3.
//  Copyright © 2018年 Sumavision. All rights reserved.
//

#import <UIKit/UIKit.h>

@import CoreLocation;
@import MapKit;

@protocol CLGLocationManagerDelegate <NSObject>

- (void)didGetLocationPlacemark:(CLPlacemark *)placemark error:(NSError *)error;

@end


@interface CLGLocationManager : NSObject

@property (strong, nonatomic) CLPlacemark *currentPlacemark;
@property (strong, nonatomic) CLLocationManager *manager;
@property (weak, nonatomic) id<CLGLocationManagerDelegate> delegate;

@property (assign, nonatomic) BOOL goToSettingsWhenAuthorizationDeny;

+ (CLGLocationManager *)sharedManager;

- (void)startMonitoring;

- (void)externalNavigateToDestination:(CLLocationCoordinate2D)destination name:(NSString *)name;

@end
